package com.ado.abyss.core.web.configure.mybatis;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

/**
 *@author adonais
 *@date 2020年3月22日
 *@description MybatisPlusConfig.java
 **/
@Configuration
public class MybatisPlusConfig {
	
	/**定义日志**/
	private final static Logger log = LoggerFactory.getLogger(MybatisPlusConfig.class);
	
	/**
     * @description: 配置分页插件
     *
     * @author: adonais
     * @date: 2020/03/22
     * @param: []
     * @return: com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
    	log.debug("注册分页插件");
        return new PaginationInterceptor();
    }

}
